module type T = {
  type read
}

module Make = (T: T) => {
  open NodeJs
  type t

  type options = {headers: array<string>}

  @module("csv-parser")
  external make: (~opts: options=?) => Stream.subtype<Stream.transform<'w, T.read>> = "default"
}
